home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 9825 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: cnn.exu.ericsson.se!news
  2. From: ebumow@unconfigured.xvnews.domain (Mickey Williams 66753)
  3. Newsgroups: gnu.g++.help,comp.lang.c++
  4. Subject: Re: IS THIS LEGAL? Static method returns pointer to class
  5. Date: 4 Mar 1996 17:36:58 GMT
  6. Organization: The unconfigured xvnews people
  7. Message-ID: <4hf9nr$d19@cnn.exu.ericsson.se>
  8. References: <4hdu70$efa@panix.com>
  9. Reply-To: ebumow@unconfigured.xvnews.domain
  10. NNTP-Posting-Host: franklin.ebu.ericsson.se
  11.  
  12. In article <4hdu70$efa@panix.com>, acinader@panix.com (Arthur Cinader Jr) writes:
  13.  
  14. >     10 class Trianlge : public Point {
  15.                     ^^   Tri - a n g l e 
  16.  
  17. >     11 public:
  18. >     12     Trinagle(float = 0.0, float = 0.0, float = 0.0);
  19.                 ^^
  20.  
  21.  
  22. >     13     float gets() const;
  23. >     14     virtual void draw() const;
  24. >     15
  25. >     16     static Param &getParams();
  26. >     17     static Triangle *makeinstance(Param &);
  27.                     ^^^^^^^^ This is the traditional spelling
  28.  
  29. >     18 private:
  30. >     19     float side;
  31. >     20 };
  32.  
  33. Trianlge, Trianagle, Triangle: pick one, and stick with it ;)
  34.  ---
  35.  Mickey Williams
  36.  Ericsson Inc.            Business Systems Division
  37.  +1 714 236-6753
  38.  The opinions above are mine alone, and not those of my employer...
  39.  
  40.  
  41.  
  42.